package com.bw.mapper;

import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface UvMapper {

    //根据渠道分组  回去日活数据
    /*
    *  Map  {"ch"->"苹果"，"uv"->400,"uj"->10}
    *  Map  {"ch"->"苹果"，"uv"->400,"uj"->10}
    * Map  {"ch"->"苹果"，"uv"->400,"uj"->10}
    * Map  {"ch"->"苹果"，"uv"->400,"uj"->10}
    * */
    @Select("select  ch,sum(uv_ct)  uv from   dws_traffic_vc_ch_ar_is_new_page_view_window  where   toYYYYMMDD(stt)=#{date}  group  by   ch")
    public List<Map> selectUVByCH(int date);
}
